package com.ruoyi.course.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 考试对象 t_exam
 *
 * @author ruoyi
 * @date 2024-12-03
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class TExam extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 课程ID
     */
    @Excel(name = "课程ID")
    private Long cId;

    /**
     * 试卷ID
     */
    @Excel(name = "试卷ID")
    private Long pId;

    /**
     * 考试名称
     */
    @Excel(name = "考试名称")
    private String name;

    /**
     * 考试时长
     */
    @Excel(name = "考试时长")
    private Long duration;

    /**
     * 是否限制考试时间
     */
    @Excel(name = "是否限制考试时间")
    private Long timeLimit;

    /**
     * 考试开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "考试开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 考试结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "考试结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 考前注意事项
     */
    @Excel(name = "考前注意事项")
    private String precaution;

    /**
     * 考试权限
     */
    @Excel(name = "考试权限")
    private String permission;

    /**
     * 考试密码
     */
    @Excel(name = "考试密码")
    private String password;

    /**
     * 是否批改
     */
    @Excel(name = "是否批改")
    private Long isMark;

    /**
     * 未批改数
     */
    @Excel(name = "未批改数")
    private Long ungradedNum;

    /**
     * 未上交数
     */
    @Excel(name = "未上交数")
    private Long unturnedNum;

    /**
     * 逻辑删除
     */
    @TableField(fill = FieldFill.INSERT)
    private Long deleteStatus;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

}
